#ifndef UDPTHREAD_H
#define UDPTHREAD_H

#include <QThread>
#include <QUdpSocket>

struct ImageFrameHead {
    int funCode;
    unsigned int uTransFrameHdrSize;
    unsigned int uTransFrameSize;
    unsigned int uDataFrameSize;
    unsigned int uDataFrameTotal;
    unsigned int uDataFrameCurr;
    unsigned int uDataInFrameOffset;

};

class udpthread : public QThread
{
    Q_OBJECT
public:
    udpthread(QObject *parent = 0);
    ~udpthread();

protected:
    void run();

signals:
    void sigRecvOk(char *buf , int len);

public slots:
    void slotRecv();

private:
    QUdpSocket *m_udpSocket;
    char *m_buf;

};

#endif // UDPTHREAD_H
